﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DXApplicationTangche.UC.金蝶.dto
{
    class MaterialDTO
    {
        public class FMaterialGroup
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
            public FMaterialGroup(String FMaterialGroup)
            {
                this.FNumber = FMaterialGroup;
            }
        }

        public class FRetailUnitID
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FSubHeadEntity
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsControlSal { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FLowerPercent { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FUpPercent { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCalculateBase { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMaxSalPrice_CMK { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMinSalPrice_CMK { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsAutoRemove { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsMailVirtual { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsFreeSend { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FPriceType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FLogisticsCount { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FRequestMinPackQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMinRequestQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FRetailUnitID FRetailUnitID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsPrinttAg { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsAccessory { get; set; }
        }

        public class FCategoryID
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FTaxType
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FTaxRateId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FBaseUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FWEIGHTUNITID
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FVOLUMEUNITID
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class SubHeadEntity
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FBARCODE { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FErpClsID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FFeatureItem { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCONFIGTYPE { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FCategoryID FCategoryID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FTaxType FTaxType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FTaxRateId FTaxRateId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FBaseUnitId FBaseUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsPurchase { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsInventory { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsSubContract { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsSale { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsProduce { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsAsset { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FGROSSWEIGHT { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FNETWEIGHT { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FWEIGHTUNITID FWEIGHTUNITID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FLENGTH { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FWIDTH { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FHEIGHT { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FVOLUME { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FVOLUMEUNITID FVOLUMEUNITID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FSuite { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FCostPriceRate { get; set; }
            public SubHeadEntity(String FErpClsID, String FBaseUnitId)
            {
                this.FErpClsID = FErpClsID;

                this.FBaseUnitId = new FBaseUnitId();
                this.FBaseUnitId.FNumber = FBaseUnitId;
            }
            public SubHeadEntity(String FErpClsID)
            {
                this.FErpClsID = FErpClsID;
            }
        }

        public class FStoreUnitID
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FAuxUnitID
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FStockId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FStockPlaceId
        {
        }

        public class FBatchRuleID
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FCurrencyId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FSNCodeRule
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FSNUnit
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class SubHeadEntity1
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FStoreUnitID FStoreUnitID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FAuxUnitID FAuxUnitID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FUnitConvertDir { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FStockId FStockId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FStockPlaceId FStockPlaceId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsLockStock { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsCycleCounting { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCountCycle { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FCountDay { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsMustCounting { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsBatchManage { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FBatchRuleID FBatchRuleID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsKFPeriod { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsExpParToFlot { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FExpUnit { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FExpPeriod { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FOnlineLife { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FRefCost { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FCurrencyId FCurrencyId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsEnableMinStock { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsEnableMaxStock { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsEnableSafeStock { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsEnableReOrder { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMinStock { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FSafeStock { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FReOrderGood { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FEconReOrderQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMaxStock { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsSNManage { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsSNPRDTracy { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSNCodeRule FSNCodeRule { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSNUnit FSNUnit { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FSNManageType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FSNGenerateTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FBoxStandardQty { get; set; }
            public SubHeadEntity1(String FStockId)
            {
                this.FStockId = new FStockId();
                this.FStockId.FNumber = FStockId;
            }
        }

        public class FSaleUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FSalePriceUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FTaxCategoryCodeId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FSalGroup
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class SubHeadEntity2
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSaleUnitId FSaleUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSalePriceUnitId FSalePriceUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FOrderQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMinQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMaxQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FOutStockLmtH { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FOutStockLmtL { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FAgentSalReduceRate { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsATPCheck { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsReturnPart { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsInvoice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsReturn { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FAllowPublish { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FISAFTERSALE { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FISPRODUCTFILES { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FISWARRANTED { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FWARRANTY { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FWARRANTYUNITID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FOutLmtUnit { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FTaxCategoryCodeId FTaxCategoryCodeId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSalGroup FSalGroup { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsTaxEnjoy { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FTaxDiscountsType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FUnValidateExpQty { get; set; }
        }

        public class FPurchaseUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FPurchasePriceUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FPurchaseGroupId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FPurchaserId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FDefaultVendor
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FChargeID
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FPOBillTypeId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FDefBarCodeRuleId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class SubHeadEntity3
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FBaseMinSplitQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPurchaseUnitId FPurchaseUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPurchasePriceUnitId FPurchasePriceUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPurchaseGroupId FPurchaseGroupId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPurchaserId FPurchaserId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FDefaultVendor FDefaultVendor { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FChargeID FChargeID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsQuota { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FQuotaType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMinSplitQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsVmiBusiness { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FEnableSL { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsPR { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsReturnMaterial { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsSourceControl { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FReceiveMaxScale { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FReceiveMinScale { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FReceiveAdvanceDays { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FReceiveDelayDays { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPOBillTypeId FPOBillTypeId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FAgentPurPlusRate { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FDefBarCodeRuleId FDefBarCodeRuleId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FPrintCount { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMinPackCount { get; set; }
            public SubHeadEntity3(String FChargeID, String FDefaultVendor)
            {
                this.FChargeID = new FChargeID();
                this.FChargeID.FNumber = FChargeID;
                this.FDefaultVendor = new FDefaultVendor();
                this.FDefaultVendor.FNumber = FDefaultVendor;
            }
        }

        public class FMfgPolicyId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FPlanWorkshop
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FPlanGroupId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FATOSchemeId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FPlanerID
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FSupplySourceId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FTimeFactorId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FQtyFactorId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FProductLine
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FPlanIdent
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FProScheTrackId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class SubHeadEntity4
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FPlanMode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FBaseVarLeadTimeLotSize { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FPlanningStrategy { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FMfgPolicyId FMfgPolicyId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FOrderPolicy { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPlanWorkshop FPlanWorkshop { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FFixLeadTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FFixLeadTimeType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FVarLeadTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FVarLeadTimeType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FCheckLeadTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCheckLeadTimeType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FOrderIntervalTimeType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FOrderIntervalTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMaxPOQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMinPOQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FIncreaseQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FEOQ { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FVarLeadTimeLotSize { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FPlanIntervalsDays { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FPlanBatchSplitQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FRequestTimeZone { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FPlanTimeZone { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPlanGroupId FPlanGroupId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FATOSchemeId FATOSchemeId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPlanerID FPlanerID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsMrpComBill { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FCanLeadDays { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsMrpComReq { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FLeadExtendDay { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FReserveType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FPlanSafeStockQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FAllowPartAhead { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FCanDelayDays { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FDelayExtendDay { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FAllowPartDelay { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FPlanOffsetTimeType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FPlanOffsetTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSupplySourceId FSupplySourceId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FTimeFactorId FTimeFactorId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FQtyFactorId FQtyFactorId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FProductLine FProductLine { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FWriteOffQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPlanIdent FPlanIdent { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FProScheTrackId FProScheTrackId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FDailyOutQty { get; set; }
        }

        public class FWorkShopId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FProduceUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FProduceBillType
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FOrgTrustBillType
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FBOMUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FPickStockId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FPickBinId
        {
        }

        public class FDefaultRouting
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FMinIssueUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FMdlId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FMdlMaterialId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class SubHeadEntity5
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FWorkShopId FWorkShopId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FProduceUnitId FProduceUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FFinishReceiptOverRate { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FFinishReceiptShortRate { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FProduceBillType FProduceBillType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FOrgTrustBillType FOrgTrustBillType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsSNCarryToParent { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsProductLine { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FBOMUnitId FBOMUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FLOSSPERCENT { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FConsumVolatility { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsMainPrd { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsCoby { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsECN { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIssueType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FBKFLTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPickStockId FPickStockId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FPickBinId FPickBinId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FOverControlMode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FMinIssueQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FISMinIssueQty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsKitting { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsCompleteSet { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FDefaultRouting FDefaultRouting { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FStdLaborPrePareTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FStdLaborProcessTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FStdMachinePrepareTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FStdMachineProcessTime { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FMinIssueUnitId FMinIssueUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FMdlId FMdlId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FMdlMaterialId FMdlMaterialId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FStandHourUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FBackFlushType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FFIXLOSS { get; set; }
        }

        public class FSubconUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FSubconPriceUnitId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FSubBillType
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class SubHeadEntity7
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSubconUnitId FSubconUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSubconPriceUnitId FSubconPriceUnitId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSubBillType FSubBillType { get; set; }
        }

        public class FIncSampSchemeId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FIncQcSchemeId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FInspectGroupId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FInspectorId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class SubHeadEntity6
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCheckIncoming { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCheckProduct { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCheckStock { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCheckReturn { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCheckDelivery { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FEnableCyclistQCSTK { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FStockCycle { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FEnableCyclistQCSTKEW { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int FEWLeadDay { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FIncSampSchemeId FIncSampSchemeId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FIncQcSchemeId FIncQcSchemeId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FInspectGroupId FInspectGroupId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FInspectorId FInspectorId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCheckEntrusted { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCheckOther { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsFirstInspect { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCheckReturnMtrl { get; set; }
        }

        public class FUnitId_CMK
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNUMBER { get; set; }
        }

        public class FBarCodeEntity_CMKItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FCodeType_CMK { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FUnitId_CMK FUnitId_CMK { get; set; }
        }

        public class FSpecialAttributeEntityItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryID { get; set; }
        }

        public class FAuxPropertyId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FEntityAuxPtyItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FAuxPropertyId FAuxPropertyId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsEnable1 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsComControl { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsAffectPrice1 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsAffectPlan1 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsAffectCost1 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsMustInput { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FValueType { get; set; }
        }

        public class FInvPtyId
        {
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
        }

        public class FEntityInvPtyItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int FEntryID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FInvPtyId FInvPtyId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsEnable { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsAffectPrice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsAffectPlan { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsAffectCost { get; set; }
        }

        public class Model
        {
            /// <summary>
            /// 
            /// </summary>
            public int FMATERIALID { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FNumber { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FSpecification { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FMnemonicCode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FOldNumber { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FDescription { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FMaterialGroup FMaterialGroup { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FDSMatchByLot { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FImgStorageType { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FIsSalseByNet { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FForbidReson { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string FExtVar { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public FSubHeadEntity FSubHeadEntity { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public SubHeadEntity SubHeadEntity { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public SubHeadEntity1 SubHeadEntity1 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public SubHeadEntity2 SubHeadEntity2 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public SubHeadEntity3 SubHeadEntity3 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public SubHeadEntity4 SubHeadEntity4 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public SubHeadEntity5 SubHeadEntity5 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public SubHeadEntity7 SubHeadEntity7 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public SubHeadEntity6 SubHeadEntity6 { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<FBarCodeEntity_CMKItem> FBarCodeEntity_CMK { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<FSpecialAttributeEntityItem> FSpecialAttributeEntity { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<FEntityAuxPtyItem> FEntityAuxPty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<FEntityInvPtyItem> FEntityInvPty { get; set; }
            /// <summary>
            /// 自制-产成品
            /// </summary>
            /// <param name="FName"></param>
            /// <param name="FSpecification"></param>
            /// <param name="FErpClsID"></param>
            /// <param name="FCategoryID"></param>
            public Model(string FName, string FSpecification, string FErpClsID, string FMaterialGroup)
            {
                this.FName = FName;
                this.FSpecification = FSpecification;
                this.FMaterialGroup = new FMaterialGroup(FMaterialGroup);
                this.SubHeadEntity = new SubHeadEntity(FErpClsID);
            }
            /// <summary>
            /// 外购-原材料
            /// </summary>
            /// <param name="FName"></param>
            /// <param name="FErpClsID"></param>
            public Model(string FName, string FErpClsID)
            {
                this.FName = FName;
                this.SubHeadEntity = new SubHeadEntity(FErpClsID);
                this.SubHeadEntity1 = new SubHeadEntity1("CK001");
            }
            /// <summary>
            /// 外购-辅料
            /// </summary>
            /// <param name="FName"></param>
            /// <param name="FErpClsID"></param>
            /// <param name="FCategoryID"></param>
            public Model(string FName, string FErpClsID, string FCategoryID)
            {
                this.FName = FName;
                this.SubHeadEntity = new SubHeadEntity(FErpClsID, FCategoryID);
            }
            /// <summary>
            /// 
            /// </summary>
            /// <param name="materailNo"></param>
            /// <param name="materialName"></param>
            /// <param name=" FMaterialGroup">物料分组</param>
            /// <param name=" FErpClsID">物料属性</param>
            /// <param name=" FBaseUnitId">基本单位</param>
            /// <param name=" FChargeID">费用项目</param>
            /// <param name=" FDefaultVendor">默认供应商</param>
            /// <param name=" FStockId">仓库</param>
            public Model(String materailNo,
                String materialName,
                String FMaterialGroup,
                String FErpClsID,
                String FBaseUnitId,
                String FChargeID,
                String FDefaultVendor,
                String FStockId)
            {
                this.FName = materailNo;
                this.FSpecification = materialName;
                this.FMaterialGroup = new FMaterialGroup(FMaterialGroup);
                this.SubHeadEntity = new SubHeadEntity(FErpClsID, FBaseUnitId);
                this.SubHeadEntity3 = new SubHeadEntity3(FChargeID, FDefaultVendor);
                this.SubHeadEntity1 = new SubHeadEntity1(FStockId);
            }
            //辅料带规格
            public Model(String materailNo,
                String materialName,
                String FMaterialGroup,
                String FErpClsID,
                String FBaseUnitId,
                String FChargeID,
                String FDefaultVendor,
                String FStockId,
                String FDescription)
            {
                this.FName = materailNo;
                this.FSpecification = materialName;
                this.FDescription = FDescription;
                this.FMaterialGroup = new FMaterialGroup(FMaterialGroup);
                this.SubHeadEntity = new SubHeadEntity(FErpClsID, FBaseUnitId);
                this.SubHeadEntity3 = new SubHeadEntity3(FChargeID, FDefaultVendor);
                this.SubHeadEntity1 = new SubHeadEntity1(FStockId);
            }
        }

        public class Root
        {
            /// <summary>
            /// 
            /// </summary>
            public List<string> NeedUpDateFields { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<string> NeedReturnFields { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string IsDeleteEntry { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string SubSystemId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string IsVerifyBaseDataField { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string IsEntryBatchFill { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string ValidateFlag { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string NumberSearch { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string IsAutoAdjustField { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string InterationFlags { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string IgnoreInterationFlag { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public Model Model { get; set; }
            /// <summary>
            /// 2自制——样衣
            /// </summary>
            /// <param name="FName">款号</param>
            /// <param name="FSpecification">面料号</param>
            public Root(String FName, String FSpecification)
            {
                String FMaterialGroup = "样衣";
                String FErpClsID = "2";
                this.Model = new Model(FName, FSpecification, FErpClsID, FMaterialGroup);
            }

            /// <summary>
            /// 面辅料物料保存
            /// </summary>
            /// <param name="materialNo"></param>
            /// <param name="materailName"></param>
            /// <param name="FDefaultVendor">默认供应商</param>
            /// <param name="group">组</param>
            public Root(
                String materialNo,
                String materailName,
                String FDefaultVendor,
                int group
                )
            {
                String FMaterialGroup;  //  物料分组
                String FBaseUnitId; //  基本单位
                String FStockId;    //  仓库
                if (group == 0)
                {
                    FMaterialGroup = "面料";
                    FBaseUnitId = "m";
                    FStockId = "CK001";
                }
                else
                {
                    FMaterialGroup = "辅料";
                    FBaseUnitId = "m";
                    FStockId = "CK002";
                }
                String FErpClsID = "1"; //物料属性
                String FChargeID = "FYXM01_SYS";    //  费用项目
                this.Model = new Model(materialNo, materailName, FMaterialGroup, FErpClsID, FBaseUnitId, FChargeID, FDefaultVendor, FStockId);
            }
            /// <summary>
            /// 辅料物料保存
            /// </summary>
            /// <param name="materialNo"></param>
            /// <param name="materailName"></param>
            /// <param name="FDefaultVendor">默认供应商</param>
            /// <param name="FMaterialGroup">物料分组</param>
            public Root(
                String materialNo,
                String materailName,
                String FDefaultVendor,
                String FMaterialGroup
                )
            {
                String FBaseUnitId; //  基本单位
                if ("包条".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("衬条".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("垫肩".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("吊钟".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("挂钩".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("挂绳".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("花边".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("扣".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("拉链".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("皮筋".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("乌眼".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("线".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("牙绳条".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("腰带扣环".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("腰带肩带环".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else//织带
                {
                    FBaseUnitId = "m";
                }
                String FStockId = "CK002";   //  仓库
                String FErpClsID = "1"; //物料属性
                String FChargeID = "FYXM01_SYS";    //  费用项目
                this.Model = new Model(materialNo, materailName, FMaterialGroup, FErpClsID, FBaseUnitId, FChargeID, FDefaultVendor, FStockId);
            }
            public Root(
                String materialNo,
                String materailName,
                String FDefaultVendor,
                String FMaterialGroup,
                String FDescription
                )
            {
                String FBaseUnitId; //  基本单位
                if ("包条".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("衬条".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("垫肩".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("吊钟".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("挂钩".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("挂绳".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("花边".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("扣".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("拉链".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("皮筋".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("乌眼".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("线".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("牙绳条".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "m";
                }
                else if ("腰带扣环".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else if ("腰带肩带环".Equals(FMaterialGroup))
                {
                    FBaseUnitId = "Pcs";
                }
                else//织带
                {
                    FBaseUnitId = "m";
                }
                String FStockId = "CK002";   //  仓库
                String FErpClsID = "1"; //物料属性
                String FChargeID = "FYXM01_SYS";    //  费用项目
                this.Model = new Model(materialNo, materailName, FMaterialGroup, FErpClsID, FBaseUnitId, FChargeID, FDefaultVendor, FStockId, FDescription);
            }
        }
    }
    class MaterialVerifyDTO
    {
        public List<String> Numbers { get; set; }
        public String Ids { get; set; }
        public String InterationFlags { get; set; }

        public bool NetworkCtrl { get; set; }
        public bool IsVerifyProcInst { get; set; }
        public bool IgnoreInterationFlag { get; set; }


        public MaterialVerifyDTO(String FNumber, String id)
        {
            this.Numbers = new List<string>();
            this.Numbers.Add(FNumber);
            this.Ids = id;
        }
    }

    class MaterialSubmitDTO
    {
        public List<String> Numbers { get; set; }
        public String Ids { get; set; }

        public int SelectedPostId { get; set; }

        public bool NetworkCtrl { get; set; }
        public bool IgnoreInterationFlag { get; set; }


        public MaterialSubmitDTO(String FNumber, String id)
        {
            this.Numbers = new List<string>();
            this.Numbers.Add(FNumber);
            this.Ids = id;
        }
    }
    class MaterialResultDTO
    {
        public class SuccessEntitysItem
        {
            /// <summary>
            /// 
            /// </summary>
            public int Id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string Number { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int DIndex { get; set; }
        }

        public class ResponseStatus
        {
            /// <summary>
            /// 
            /// </summary>
            public string IsSuccess { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<string> Errors { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<SuccessEntitysItem> SuccessEntitys { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<string> SuccessMessages { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int MsgCode { get; set; }
        }

        public class NeedReturnDataItem
        {
        }

        public class Result
        {
            /// <summary>
            /// 
            /// </summary>
            public ResponseStatus ResponseStatus { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int Id { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string Number { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public List<NeedReturnDataItem> NeedReturnData { get; set; }
        }

        public class KingDeeAddResultRoot
        {
            /// <summary>
            /// 
            /// </summary>
            public Result Result { get; set; }
            public KindDeeApplyReturnDTO build()
            {
                try
                {
                    return
                        new KindDeeApplyReturnDTO(
                            this.Result.Id.ToString(),
                            this.Result.Number,
                            Convert.ToBoolean(this.Result.ResponseStatus.IsSuccess),
                            Convert.ToBoolean(this.Result.ResponseStatus.IsSuccess) ? "金蝶保存成功" : "金蝶保存失败",
                            this.Result.ResponseStatus.MsgCode.ToString()
                            );
                }
                //Result为空
                catch
                {
                    return
                        new KindDeeApplyReturnDTO(
                            false,
                            "金蝶保存失败"
                            );
                }
            }
        }
    }
}
